home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / swingall.jar / javax / swing / text / html / HTMLDocument$HTMLReader$BaseAction.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-07-15  |  1.4 KB  |  30 lines

  1. package javax.swing.text.html;
  2.  
  3. import java.net.MalformedURLException;
  4. import java.net.URL;
  5. import javax.swing.text.MutableAttributeSet;
  6. import javax.swing.text.html.HTML.Attribute;
  7. import javax.swing.text.html.HTMLDocument.HTMLReader;
  8.  
  9. class HTMLDocument$HTMLReader$BaseAction extends HTMLDocument.HTMLReader.TagAction {
  10.    // $FF: synthetic field
  11.    private final HTMLDocument.HTMLReader this$1;
  12.  
  13.    HTMLDocument$HTMLReader$BaseAction(HTMLDocument.HTMLReader var1) {
  14.       super(var1);
  15.       this.this$1 = var1;
  16.    }
  17.  
  18.    public void start(HTML.Tag var1, MutableAttributeSet var2) {
  19.       String var3 = (String)var2.getAttribute(Attribute.HREF);
  20.       if (var3 != null) {
  21.          try {
  22.             HTMLReader.access$0(this.this$1).base = new URL(HTMLReader.access$0(this.this$1).base, var3);
  23.             HTMLReader.access$0(this.this$1).getStyleSheet().setBase(HTMLReader.access$0(this.this$1).base);
  24.          } catch (MalformedURLException var4) {
  25.          }
  26.       }
  27.  
  28.    }
  29. }
  30.